﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjetAGL
{
    class Search : ISearch
    {
         public Boolean voisin(string mot)
        {
            Boolean verif = false;
            string[] lines = System.IO.File.ReadAllLines(@"C:\Mixmo\dico.txt");

            foreach (string line in lines)
            {
                if (mot == line)
                    verif = true;         
            }          
            return verif;
        }     
    }
}
